package com.xingkeduo.business.user.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import com.xingkeduo.pojo.dto.ResponseMessage;
import com.xingkeduo.util.config.FeignConfig;

@FeignClient(value = "business-marketing", configuration = FeignConfig.class)
public interface MarketingFeignService {

    /**
     * 查询用户是否有券 是否有卡 pantong  2019年5月24日上午11:12:55
     * @param userId
     * @param sign
     * @return
     * ResponseMessage
     */
    @RequestMapping("/mk/api/discount/package/getUserCardAuthInfo")
    ResponseMessage getUserCardAuthInfo(@RequestParam(value = "userId")Long userId,@RequestParam(value = "sign")String sign);


    /**新用户领取5折券
     * @param userId:
     * @return : com.xingkeduo.pojo.dto.ResponseMessage
     * @author : gaozifeng
     * @date : 2019/7/12 10:17
     */
    @RequestMapping("/mk/api/provide/bindReceiveAccountOfShareNewUser")
    ResponseMessage bindReceiveAccountOfShareNewUser(@RequestParam("userId") Long userId);

    /**老用户发送5折券
     * @param userId:
     * @return : com.xingkeduo.pojo.dto.ResponseMessage
     * @author : gaozifeng
     * @date : 2019/7/12 10:17
     */
    @RequestMapping("/mk/api/provide/bindReceiveAccountOfShareOldUser")
    ResponseMessage bindReceiveAccountOfShareOldUser(@RequestParam("userId") Long userId);
}
